package News;

import java.util.List;

import News.entity.Inland_News;
import News.service.Inland_NewsService;
import News.service.impl.Inland_NewsServiceImpl;

public class Demo1 {
	public static void main(String[] args) {
		
		Inland_NewsService yes = new Inland_NewsServiceImpl();
		int count = yes.getTotalCount();
		List<Inland_News> List = yes.getPageNewsList(2, 3);
		System.out.println("getNewsId\tgetNewsContent\tgetTime\tgetNumOfRead");
		for (Inland_News list : List) {
			System.out.println(list.getNewsId()+"\t\t"+list.getNewsContent()+"\t\t"+list.getTime()+"\t\t"+list.getNumOfRead());
		}
		
	}
}
